home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1998 January / PC Answers Issue 49 Cover CD January 1998.iso / LIBS / NAV / UNINSTAL.IN_ / UNINSTAL.IN
Text File  |  1997-02-06  |  25KB  |  905 lines

  1. ;***************************************************************************
  2. ;* Norton AntiVirus for Windows 95 (Luigi) Uninstall Script                *
  3. ;* FOR VERSION 4.0+ OF SYMANTEC INSTALL FOR WINDOWS                        *
  4. ;***************************************************************************
  5.  
  6. [InstallVersion]
  7. 4.1
  8.  
  9. [Process]
  10. Uninstall()                    ; Indicate uninstall processing
  11. Bitmaps(pix)                   ; Background bitmaps
  12. DisableHelp()                  ; Don't display help buttons
  13. Backup(CustDLLCopy)            ; Backup the custom dll in case we need it
  14.  
  15. SetActiveCopy(NAVCopy, uninstal.inf)
  16.  
  17. ;////////////////////////////////////////
  18. ;// I N I T I A L I Z E   M E M O R Y
  19. ;////////////////////////////////////////
  20. CallProc(InitMemory)
  21. CallProc(RestoreNavap)
  22.  
  23. ;//////////////////////////////
  24. ;// Only support full Uninstall  
  25. ;//////////////////////////////
  26. WizardPanel(UninstallDlg, siwnav32.dll)
  27. WizardProcessPanel()
  28.  
  29. SelectOption(BaseFiles)
  30. FullUninstall()
  31.  
  32. ;//////////////////////////////
  33. ;// Set Target Directories
  34. ;//////////////////////////////
  35.  
  36. ResetTarget(SourceToTarget4)    ; Set TARGET4 to selected directory
  37. CallProcEx(GetShort)            ; Set short form of target path in TARGET4
  38. ResetTarget(Target4ToTarget)    ; Save it in TARGET
  39.  
  40. ResetTarget(SystemToTarget2)    ; Set NAV System folder
  41.  
  42. switch99 = CallProcEx(FindSharedComponents) ; Get shared comp dir from reg
  43. #ifnot(switch99)                ; If shared comp folder not registered
  44.    GetSymantecDir()             ;   use Symantec dir.
  45.    ResetTarget(SharedToTarget3)
  46. #endif
  47.  
  48. :Proceed
  49.  
  50.  
  51. ;//////////////////////////////
  52. ;// Onramp Removal Here
  53. ;//////////////////////////////
  54. ResetTarget(Target2Onramp)      ; TARGET2 = TARGET for Onramp (temp)
  55. ResetTarget(Target2to3)         ; TARGET3 = TARGET for Onramp
  56. ResetTarget(TargetExt)          ; Reset TARGET2
  57.  
  58. CallProcEx(OnrampUsageCounts)   
  59.                                 ; Reset TARGET2 and TARGET3
  60. ResetTarget(SystemToTarget2)    ; Set NAV System folder
  61.  
  62. switch99 = CallProcEx(FindSharedComponents) ; Get shared comp dir from reg
  63. #ifnot(switch99)                ; If shared comp folder not registered
  64.    GetSymantecDir()             ;   use Symantec dir.
  65.    ResetTarget(SharedToTarget3)
  66. #endif
  67.  
  68.  
  69. ;//////////////////////////////
  70. ;// Update registry
  71. ;//////////////////////////////
  72.  
  73. CallProcEx(DeleteNavwPathReg)
  74. CallProcEx(DeleteNavwHelpReg)
  75. CallProcEx(DeleteNavapVxdReg)
  76. CallProcEx(DeleteNavapRunReg)
  77. CallProcEx(DeleteNavapwPathReg)
  78. CallProcEx(DeleteSchedulerPathReg)
  79. CallProcEx(DeleteSchedulerHelpReg)
  80. CallProcEx(DeleteRescuePathReg)
  81. CallProcEx(DeleteVirfileReg1)
  82. CallProcEx(DeleteVirfileReg2)
  83. CallProcEx(DeleteRescueReg1)
  84. CallProcEx(DeleteTrialKey)
  85. CallProcEx(DeleteRescueReg2)
  86. CallProcEx(DeleteRescueReg3)
  87. CallProcEx(DeleteRescueRegValue)
  88. switch99 = CallProcEx(IsRescueKeyEmpty)
  89. #if (switch99)
  90.     CallProcEx(DeleteRescueRegKey)
  91. #endif
  92.  
  93. CallProcEx(UpdateNetscapePluginKeys)
  94.                                         ; Decrement usage counts.
  95. CallProcEx(UsageCounts)
  96.  
  97. DeselectOption(shared)                  ; Shared files deleted in custom dll.
  98. CallProcEx(DeleteSharedKeysAndFiles)
  99.  
  100. #if (switch90)                          ; Symevnt removed.
  101.     CallProcEx(DeleteSymevntKey)
  102. #endif
  103. #if (switch91)                          ; Infodesk removed.
  104.     CallProcEx(DeleteInfoDeskKey)
  105.     Delete(ContentsDelete)
  106. #endif
  107.  
  108. CallProcEx(DeletePipeNavKey)            ; always
  109. CallProcEx(DeletePipelineKey)           ; if empty
  110. CallProcEx(DeleteNavReg)
  111. CallProcEx(DeleteNavDefsReg)
  112. CallProcEx(DeleteSage)
  113. CallProcEx(DeleteNavInstalledReg)
  114. CallProcEx(DeleteNavUninstallReg)
  115. CallProcEx(DeleteSymInstalledApps)
  116.  
  117.  
  118. ;//////////////////////////////
  119. ;// Delete the files
  120. ;//////////////////////////////
  121.  
  122. ResetTarget(Target3ToTarget4)   ; We want the short form of shared directory
  123. CallProcEx(GetShort)            ;   in target3
  124. ResetTarget(Target4ToTarget3)
  125.  
  126. DisableUtils()
  127. Uncopy()
  128. CallProcEx(DeleteNAVDataFiles)
  129. EnableUtils()
  130.  
  131. ;//////////////////////////////
  132. ;// Delete the icons            
  133. ;//////////////////////////////
  134.  
  135. ; Delete shared, target & system directories, if empty.
  136. ResetTarget(Target3ToTarget5)           ; Delete shared components directory
  137. CallProcEx(NavRemoveSharedDir)          ;  and remove reg entry.
  138. CallProcEx(DeleteSymantecKey)           ; if empty
  139. CallProcEx(DeleteSymantecUserKey)       ; if empty
  140.  
  141. ResetTarget(Target2ToTarget5)           ; Delete system directory
  142. CallProcEx(NavRemoveProgDir)
  143. ResetTarget(TargetToTarget5)            ; Delete target directory
  144. CallProcEx(NavRemoveProgDir)
  145.  
  146. ; Removed NAV program group and startup entries.
  147. ;groups() ; NT handling?
  148. ;
  149. CallProc(RemoveNAVLink)
  150. CallProc(RemoveSchedLink)
  151. CallProc(RemoveRescueLink)
  152. CallProc(RemoveNAVGroup)
  153. CallProc(RemoveStartupSchedLink)
  154.  
  155. ResetTarget(TargetRoot)                 ; Temporarily set TARGET5 to C:\
  156.  
  157. switch99 = Exists(AutoexecFind)
  158. #if(switch99)
  159.     switch99 = VerifyStartup(CheckAVAuto)
  160.     #if(switch99)
  161.         SilentModifyTF(ModifyAutoexec)
  162.     #endif
  163. #endif
  164.  
  165. ResetTarget(TargetToTarget5)            ; Put Target5 back
  166.  
  167. SilentModifyTF(RemoveContents)
  168.  
  169. ;////////////////////////////////////
  170. ;// P R E P A R E   F O R   E X I T
  171. ;////////////////////////////////////
  172. WizardPanel(Finished, siwnav32.dll)
  173. WizardProcessPanel()
  174.  
  175.  
  176. ;//////////////////////////////
  177. ;// Clean up
  178. ;//////////////////////////////
  179.  
  180. CallProc(ExitHookProc)   ; Causes the DLL reference count to decremented and
  181.                          ; frees any allocated memory.
  182. Delete(CustDLLDelete)
  183. Delete(Leftovers)
  184.  
  185. ;//////////////////////////////
  186. ;// Prepare for exit            
  187. ;//////////////////////////////
  188.  
  189. switch99 = IsInstallShell()
  190.  
  191. #if(switch99)
  192.    ExitRestart()
  193. #else
  194.    Exit()
  195. #endif
  196.  
  197. end()
  198.  
  199. ;***************************************************************************
  200. ;* SubProc Executed When Install Takes Over As Shell                       *
  201. ;***************************************************************************
  202.  
  203. [SubProc]
  204. Backup(CustDLLCopy)            ; Backup the custom dll in case we need it
  205. DelFromIni(KillVxds)
  206. CallProc(BackupNavap)
  207. Return()
  208.  
  209. ;***************************************************************************
  210. ;* SetShell section                                                        *
  211. ;***************************************************************************
  212.  
  213. [SetShell]
  214. WinIniName = win.ini
  215. SystemIniName = system.ini
  216. Message = MessageBox.SetShellMessage
  217. SysSectionName = boot
  218. WinSectionName = windows
  219. shell = %s\setup.exe
  220. load =
  221. run =
  222. SetShellIfLoaded=
  223. Active=yes
  224. Backup = Backup.SetShellSave
  225. Restore = Backup.SetShellRestore
  226. IfActiveList=LoadedList
  227. SubProcess=SubProc
  228.  
  229. [SetShellSave]
  230. win.ini, win.siw, WINDOWS, WINDOWS
  231. system.ini, system.siw, WINDOWS, WINDOWS
  232.  
  233. [SetShellRestore]
  234. system.siw, system.ini, WINDOWS, WINDOWS
  235. win.siw, win.ini, WINDOWS, WINDOWS
  236.  
  237. [LoadedList]
  238. navw32.exe
  239. navapw32.exe
  240. nsched32.exe
  241. nresq32.exe
  242. navboot.exe
  243. symnav8.dll
  244. s32nav8.dll
  245. symevnt1.dll
  246. s32evnt1.dll
  247. s32stat.dll
  248.  
  249. [SetShellMessage]
  250. caption  =  "Norton AntiVirus for Windows 95 Setup"
  251. "Welcome to the Norton AntiVirus for Windows 95"
  252. "Uninstall program."
  253. " "
  254. "Please select OK to allow Uninstall to restart"
  255. "Windows and continue."
  256. " "
  257. "Press Cancel to exit Uninstall."
  258.  
  259. [ResetShellHook]
  260. dll = siwnav32.dll
  261. function = RestoreVxDKey
  262. vxd = NAVAP
  263.  
  264. ;***************************************************************************
  265. ;* External function calls                                                 *
  266. ;***************************************************************************
  267.  
  268. [InitMemory]
  269. dll = siwnav32.dll
  270. function = InitMemory
  271.  
  272. [FindSharedComponents]
  273. dll = siwnav32.dll
  274. function = FindSharedComponents
  275.  
  276. [GetShort]
  277. dll = siwnav32.dll
  278. function = ConvertToShortName
  279.  
  280. [NavRemoveProgDir]
  281. dll = siwnav32.dll
  282. function = NavRemoveProgDir
  283.  
  284. [ExitHookProc]
  285. dll = siwnav32.dll
  286. function = ReleaseMemory
  287.  
  288. [BackupNavap]
  289. dll = siwnav32.dll
  290. function = BackupVxDKey
  291. vxd = NAVAP
  292.  
  293. [RestoreNavap]
  294. dll = siwnav32.dll
  295. function = RestoreVxDKey
  296. vxd = NAVAP
  297.  
  298. ; Registry key removal functions
  299.  
  300. ; Attached to BaseFiles
  301.  
  302. [UsageCounts]
  303. dll = siwnav32.dll
  304. function = DecrementUsageCounts
  305.  
  306. [OnrampUsageCounts]
  307. dll = siwnav32.dll
  308. function = OnrampDecrementUsageCounts
  309.  
  310. [DeleteVirfileReg1]
  311. dll = siwnav32.dll
  312. function = NavDeleteRegKey
  313. hive = SIWHKEY_CLASSES_ROOT
  314. subkey = ".vir"
  315.  
  316. [DeleteVirfileReg2]
  317. dll = siwnav32.dll
  318. function = NavDeleteRegKey
  319. hive = SIWHKEY_CLASSES_ROOT
  320. subkey = "virfile"
  321.  
  322.  
  323. [DeleteTrialKey]
  324. dll = siwnav32.dll
  325. function = NavDeleteRegKey
  326. hive = SIWHKEY_CURRENT_USER
  327. subkey = "Software\Symantec\Norton AntiVirus\2.0"
  328.  
  329. [DeleteRescueReg1]
  330. dll = siwnav32.dll
  331. function = NavDeleteRegKey
  332. hive = SIWHKEY_LOCAL_MACHINE
  333. subkey = "SOFTWARE\Symantec\Norton Rescue\1.0\Files\Norton AntiVirus Program Disk"
  334.  
  335. [DeleteRescueReg2]
  336. dll = siwnav32.dll
  337. function = NavDeleteRegKey
  338. hive = SIWHKEY_LOCAL_MACHINE
  339. subkey = "SOFTWARE\Symantec\Norton Rescue\1.0\Files\Norton AntiVirus Definitions Disk"
  340.  
  341. [DeleteRescueReg3]
  342. dll = siwnav32.dll
  343. function = NavDeleteRegKey
  344. hive = SIWHKEY_LOCAL_MACHINE
  345. subkey = "SOFTWARE\Symantec\Norton Rescue\1.0\Files\Rescue\autoexec\Norton AntiVirus"
  346.  
  347. [DeleteRescueRegValue]
  348. dll = siwnav32.dll
  349. function = NavDeleteRegValue
  350. hive = SIWHKEY_LOCAL_MACHINE
  351. subkey = "SOFTWARE\Symantec\Norton Rescue\1.0\Apps"
  352. value = "NAV95"
  353.  
  354. [DeleteRescueRegKey]
  355. dll = siwnav32.dll
  356. function = NavDeleteRegKey
  357. hive = SIWHKEY_LOCAL_MACHINE
  358. subkey = "SOFTWARE\Symantec\Norton Rescue"
  359.  
  360. [IsRescueKeyEmpty]
  361. dll = siwnav32.dll
  362. function = IsKeyEmptyExceptDefault
  363. hive = SIWHKEY_LOCAL_MACHINE
  364. subkey = "SOFTWARE\Symantec\Norton Rescue\1.0\Apps"
  365.  
  366. [DeleteNavReg]
  367. dll = siwnav32.dll
  368. function = NavDeleteRegKey
  369. hive = SIWHKEY_LOCAL_MACHINE
  370. subkey = "SOFTWARE\Symantec\Norton AntiVirus"
  371.  
  372. [DeleteNavDefsReg]
  373. dll = siwnav32.dll
  374. function = NavDeleteRegValue
  375. hive = SIWHKEY_LOCAL_MACHINE
  376. subkey = "SOFTWARE\Symantec\InstalledApps"
  377. value = "NAVDEFS"
  378.  
  379. [DeleteSage]
  380. dll = siwnav32.dll
  381. function = NavDeleteRegKey
  382. hive = SIWHKEY_LOCAL_MACHINE
  383. subkey = "SOFTWARE\Microsoft\Plus!\System Agent\SAGE\Norton AntiVirus"
  384.  
  385. [DeleteNavInstalledReg]
  386. dll = siwnav32.dll
  387. function = NavDeleteRegValue
  388. hive = SIWHKEY_LOCAL_MACHINE
  389. subkey = "SOFTWARE\Symantec\InstalledApps"
  390. value = "NAV95"
  391.  
  392. [DeleteNavUninstallReg]
  393. dll = siwnav32.dll
  394. function = NavDeleteRegKey
  395. hive = SIWHKEY_LOCAL_MACHINE
  396. subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Norton AntiVirus"
  397.  
  398. [DeleteSymInstalledApps]
  399. dll = siwnav32.dll
  400. function = NavDeleteEmptyRegKey
  401. hive = SIWHKEY_LOCAL_MACHINE
  402. subkey = "SOFTWARE\Symantec\InstalledApps"
  403.  
  404. ; Attached to NAVAP
  405. [DeleteNavapVxdReg]
  406. dll = siwnav32.dll
  407. function = NavDeleteRegKey
  408. hive = SIWHKEY_LOCAL_MACHINE
  409. subkey = "System\CurrentControlSet\Services\VxD\NAVAP"
  410.  
  411. [DeleteNavapRunReg]
  412. dll = siwnav32.dll
  413. function = NavDeleteRegValue
  414. hive = SIWHKEY_LOCAL_MACHINE
  415. subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
  416. value = "Norton Auto-Protect"
  417.  
  418. [DeleteNavapwPathReg]
  419. dll = siwnav32.dll
  420. function = NavDeleteRegKey
  421. hive = SIWHKEY_LOCAL_MACHINE
  422. subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NAVAPW32.EXE"
  423.  
  424. ; Attached to NAVW32
  425. [DeleteNavwPathReg]
  426. dll = siwnav32.dll
  427. function = NavDeleteRegKey
  428. hive = SIWHKEY_LOCAL_MACHINE
  429. subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NAVW32.EXE"
  430.  
  431. [DeleteNavwHelpReg]
  432. dll = siwnav32.dll
  433. function = NavDeleteRegValue
  434. hive = SIWHKEY_LOCAL_MACHINE
  435. subkey = "SOFTWARE\Microsoft\Windows\Help"
  436. value = "Navw32.hlp"
  437.  
  438. ; Attached to Scheduler
  439. [DeleteSchedulerPathReg]
  440. dll = siwnav32.dll
  441. function = NavDeleteRegKey
  442. hive = SIWHKEY_LOCAL_MACHINE
  443. subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NSCHED32.EXE"
  444.  
  445. [DeleteSchedulerHelpReg]
  446. dll = siwnav32.dll
  447. function = NavDeleteRegValue
  448. hive = SIWHKEY_LOCAL_MACHINE
  449. subkey = "SOFTWARE\Microsoft\Windows\Help"
  450. value = "Nsched32.hlp"
  451.  
  452. ; Attached to Rescue
  453. [DeleteRescuePathReg]
  454. dll = siwnav32.dll
  455. function = NavDeleteRegKey
  456. hive = SIWHKEY_LOCAL_MACHINE
  457. subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NRESQ32.EXE"
  458.  
  459. ; Attached to delete shared components
  460.  
  461. [DeleteSharedKeysAndFiles]
  462. dll = siwnav32.dll
  463. function = NavDeleteSharedKeysAndFiles
  464.  
  465. [DeleteInfoDeskKey]
  466. dll = siwnav32.dll
  467. function = NavDeleteRegKey
  468. hive = SIWHKEY_CURRENT_USER
  469. subkey = "Software\Symantec\Info Desk"
  470.  
  471. [DeletePipeNavKey]
  472. dll = siwnav32.dll
  473. function = NavDeleteRegKey
  474. hive = SIWHKEY_LOCAL_MACHINE
  475. subkey = "Software\Symantec\Online Registration\Norton AntiVirus for Windows 95"
  476.  
  477. [DeletePipelineKey]
  478. dll = siwnav32.dll
  479. function = NavDeleteEmptyRegKey
  480. hive = SIWHKEY_LOCAL_MACHINE
  481. subkey = "Software\Symantec\Online Registration"
  482.  
  483. [UpdateNetscapePluginKeys]
  484. dll = siwnav32.dll
  485. function = Sphinx_UninstallNetscapePlugin
  486.  
  487. [DeleteSymevntKey]
  488. dll = siwnav32.dll
  489. function = NavDeleteRegKey
  490. hive = SIWHKEY_LOCAL_MACHINE
  491. subkey = "System\CurrentControlSet\Services\VxD\SYMEVNT"
  492.  
  493. [DeleteSymantecKey]
  494. dll = siwnav32.dll
  495. function = NavDeleteEmptyRegKey
  496. hive = SIWHKEY_LOCAL_MACHINE
  497. subkey = "SOFTWARE\Symantec"
  498.  
  499. [DeleteSymantecUserKey]
  500. dll = siwnav32.dll
  501. function = NavDeleteEmptyRegKey
  502. hive = SIWHKEY_CURRENT_USER
  503. subkey = "Software\Symantec"
  504.  
  505. [NavRemoveSharedDir]
  506. dll = siwnav32.dll
  507. function = NavRemoveSharedDir
  508.  
  509. [RemoveNAVLink]
  510. dll = siwnav32.dll
  511. function = RemoveProgramLink
  512. Link = "Norton AntiVirus\Norton AntiVirus.LNK"
  513.  
  514. [RemoveSchedLink]
  515. dll = siwnav32.dll
  516. function = RemoveProgramLink
  517. Link = "Norton AntiVirus\Norton Program Scheduler.LNK"
  518.  
  519. [RemoveRescueLink]
  520. dll = siwnav32.dll
  521. function = RemoveProgramLink
  522. Link = "Norton AntiVirus\Rescue Disk.LNK"
  523.  
  524. [RemoveNAVGroup]
  525. dll = siwnav32.dll
  526. function = RemoveProgramGroup
  527. Group = "Norton AntiVirus"
  528.  
  529. [RemoveStartupSchedLink]
  530. dll = siwnav32.dll
  531. function = RemoveStartupLink
  532. Link = "Norton Program Scheduler.LNK"
  533.  
  534. ;***************************************************************************
  535. ;* Config/Autoexec/Ini Mods                                                           *
  536. ;***************************************************************************
  537.  
  538. [AutoexecFind]
  539. autoexec.bat, TARGET5
  540.  
  541. [CheckAVAuto]
  542. file = c:\autoexec.bat
  543. findrems = 0
  544. finditems = FindNavStartup
  545. filetype = autoexec
  546.  
  547. [FindNavStartup]
  548. *navboot*
  549. *\navboot*
  550.  
  551. [ModifyAutoexec]
  552. FileSpec   = c:\autoexec.bat
  553. filetype   = autoexec
  554. Create     = 0
  555. CreateText =
  556. rem1       = "rem"
  557. FindRems   = 0
  558. DelItems   = StartupDelItems
  559.  
  560. [StartupDelItems]
  561. *navboot*
  562. *\navboot*
  563.  
  564. [RemoveContents]
  565. FileSpec    = %s\symantec.cnt, TARGET3
  566. filetype    = text
  567. Create      = 0
  568. FindRems    = 0
  569. DelItems    = RemoveContentsItems
  570.  
  571. [RemoveContentsItems]
  572. *NAVW32.CNT*
  573. *NSCHED32.CNT*
  574.  
  575. ;***************************************************************************
  576. ;* Dialog Info                                                             *
  577. ;***************************************************************************
  578.  
  579. [NAVCopy:CopyDialog]
  580. caption = "Removing Norton AntiVirus Files..."
  581. posx = -10
  582. posy = -10
  583.  
  584. ;***************************************************************************
  585. ;* Message Text                                                            *
  586. ;***************************************************************************
  587.  
  588. [SymantecDir]
  589. caption = "Searching for Shared Directory"
  590. text1 = "Searching for Symantec shared"
  591. text2 = "program folder."
  592. appname = "symcfg.bin"
  593. apppath = C:\SYMANTEC
  594.  
  595. [Errors]
  596. NoPrev  =  "Symantec Setup for Windows is already running!"
  597.  
  598. [FileCopy]
  599. copycaption   =  "Removing Norton AntiVirus files"
  600. errorcaption  =  "Error Removing Files"
  601. insertcaption =  "Insert Diskette"
  602. Message       =   MessageText
  603.  
  604. [Cancel]
  605. caption = "Symantec Setup"
  606. text    = "The installation is not complete. Are you sure you would like to exit?"
  607.  
  608. [CancelShell]
  609. caption = "Symantec Setup"
  610. "You have selected to cancel Uninstall."
  611. "In order to reset the Windows"
  612. "environment, Uninstall will also restart"
  613. "your computer.  Are you sure you would like to exit?"
  614.  
  615. [Bye]
  616. caption  =  "Symantec Setup"
  617. "This concludes the removal of Norton AntiVirus."
  618. "Your computer is no longer protected from viruses."
  619. " "
  620.  
  621. [ByeRestart]
  622. caption  =  "Symantec Setup"
  623. "Norton AntiVirus has been removed.  Your computer
  624. "is no longer protected from viruses."
  625. " "
  626. "Setup must restart your computer to complete the"
  627. "uninstall process."
  628.  
  629.  
  630. ;***************************************************************************
  631. ;* Target Folder Settings                                                  *
  632. ;***************************************************************************
  633.  
  634. [SourceToTarget4]
  635. reset = TARGET4
  636. location = %s, SOURCE
  637.  
  638. [Target4ToTarget]
  639. reset = TARGET
  640. location = %s, TARGET4
  641.  
  642. [TargetToTarget3]
  643. reset = TARGET3
  644. location = %s, TARGET
  645.  
  646. [Target2ToTarget4]
  647. reset = TARGET4
  648. location = %s, TARGET2
  649.  
  650. [Target2ToTarget5]
  651. reset = TARGET5
  652. location = %s, TARGET2
  653.  
  654. [TargetToTarget5]
  655. reset = TARGET5
  656. location = %s, TARGET
  657.  
  658. [SystemToTarget2]
  659. reset = TARGET2
  660. location = "SYSTEM"
  661. relative = 1
  662. relativeto = TARGET
  663.  
  664. [SharedToTarget3]
  665. reset = TARGET3
  666. location = %s, TARGET5
  667.  
  668. [Target3ToTarget4]
  669. reset = TARGET4
  670. location = %s, TARGET3
  671.  
  672. [Target4ToTarget3]
  673. reset = TARGET3
  674. location = %s, TARGET4
  675.  
  676. ; Remove Symantec shared folder.
  677. [Target3ToTarget5]
  678. reset = TARGET5
  679. location = %s, TARGET3
  680.  
  681. ; Remove NAV system folder.
  682. [Target2ToTarget5]
  683. reset = TARGET5
  684. location = %s, TARGET2
  685.  
  686. ; Remove NAV folder.
  687. [TargetToTarget5]
  688. reset = TARGET5
  689. location = %s, TARGET
  690.  
  691. [TargetRoot]
  692. reset = TARGET5
  693. location = C:\
  694.  
  695. [SourceDrive]
  696. caption =  "Please locate the Norton AntiVirus Directory"
  697. defpath =  C:\NAV95
  698.  
  699. [Target2to3]
  700. reset = TARGET3
  701. location = %s, TARGET2
  702.  
  703. [Target2Onramp]
  704. reset = TARGET2
  705. location = "LiveUpdate"
  706. relative = 1
  707. relativeto = TARGET3
  708.  
  709. ;***************************************************************************
  710. ;* File backup                                                             *
  711. ;***************************************************************************
  712.  
  713. [CustDLLCopy]
  714. siwnav32.dll, siwnav32.dll, SOURCE, TEMPDIR
  715. s32nav8.dll,  s32nav8.dll,  SOURCE, TEMPDIR
  716. s32scani.dll, s32scani.dll, SOURCE, TEMPDIR
  717. navex32.dll,  navex32.dll,  SOURCE, TEMPDIR
  718. navkrnl8.vxd, navkrnl8.vxd, SOURCE, TEMPDIR
  719. symnav8.dll,  symnav8.dll,  SOURCE, TEMPDIR
  720. tknv168.dll,  tknv168.dll,  SOURCE, TEMPDIR
  721. tknv328.dll,  tknv328.dll,  SOURCE, TEMPDIR
  722.  
  723. ;***************************************************************************
  724. ;* Temporary copy during initial reboot                                    *
  725. ;***************************************************************************
  726.  
  727. [SiwnavCopy]
  728. siwnav32.dll, siwnav32.dll, SOURCE, WINDOWS
  729.  
  730. ;***************************************************************************
  731. ;* Delete Files                                                            *
  732. ;***************************************************************************
  733.  
  734. [CustDLLDelete]
  735. siwnav32.dll,   TEMPDIR
  736. s32nav8.dll,    TEMPDIR
  737. s32scani.dll,   TEMPDIR
  738. navex32.dll,    TEMPDIR
  739. navkrnl8.vxd,   TEMPDIR
  740. symnav8.dll,    TEMPDIR
  741. tknv168.dll,    TEMPDIR
  742. tknv328.dll,    TEMPDIR
  743.  
  744.  
  745. [Leftovers]
  746. win.siw,        WINDOWS
  747. system.siw,     WINDOWS
  748. schedule.ini,   WINDOWS
  749.  
  750. ; Special delete - actually a custom dll function to pick up
  751. ; wildcard filespecs.
  752. [DeleteNAVDataFiles]
  753. dll = siwnav32.dll
  754. function = NavDeleteFiles
  755. activity.log,   TARGET
  756. excludel.dat,   TARGET
  757. symcfg.bin,     TARGET
  758. navboot.fts,    TARGET
  759. navboot.gid,    TARGET
  760. navw32.fts,     TARGET2
  761. navw32.gid,     TARGET2
  762. navw32.gid,     TARGET3
  763. nsched32.fts,   TARGET2
  764. nsched32.gid,   TARGET2
  765. nsched32.gid,   TARGET3
  766. rescued.fts,    TARGET
  767. rescued.gid,    TARGET
  768. schedule.dat,   TARGET
  769. schedule.bak,   TARGET
  770. infodesk.gid,   TARGET3
  771. infodesk.fts,   TARGET3
  772. infodesk.ftg,   TARGET3
  773. pipedlg.dat,    TARGET
  774. modem.id,       TARGET
  775. virscanm.dat,   TARGET
  776. virsp*.dat,     TARGET
  777. ??nav*.zip,     TARGET
  778. navex*.*,       TARGET
  779. update.txt,     TARGET
  780. ???9*.txt,      TARGET
  781. exclude.sav,    TARGET
  782. navopts.sav,    TARGET
  783. patch.bat,      TARGET
  784. technote.txt,   TARGET
  785. nwdata.dat,     TARGET
  786. results.txt,    TARGET
  787. activity.txt,   TARGET
  788. vir*.txt,       TARGET
  789. whatsnew.txt,   TARGET
  790. ncsacert.dat,   TARGET
  791. virspec.txt,    TARGET
  792. symtdat.dat,    TARGET
  793.  
  794. [ContentsDelete]
  795. symantec.cnt,   TARGET3
  796.  
  797. ;***************************************************************************
  798. ;* Delete Temporary File                                                   *
  799. ;***************************************************************************
  800.  
  801. [SiwnavDelete]
  802. siwnav32.dll,   WINDOWS
  803.  
  804. ;***************************************************************************
  805. ;* Ini modifications                                                       *
  806. ;***************************************************************************
  807.  
  808. [KillVxds]
  809. IniName = system.ini
  810. SectionName = 386enh
  811. device=*symevnt.386*
  812. device=*navap.vxd*
  813.  
  814. ;***************************************************************************
  815. ;* Merge Registry Keys                                                     *
  816. ;***************************************************************************
  817.  
  818. ;***************************************************************************
  819. ;* Misc install functions                                                  *
  820. ;***************************************************************************
  821.  
  822. [Pix]
  823. color = %s\luigi.bmp, 1, -1
  824. color = %s\symlogo.rle, -1, 1
  825.  
  826. ;***************************************************************************
  827. ;* Groups                                                                  *
  828. ;***************************************************************************
  829.  
  830. ; TARGET sections differ from install script.
  831. ;  TARGET  = NAV Program SFN
  832. ;  TARGET2 = NAV System SFN
  833. ;  TARGET3 = SYM Shared SFN
  834.  
  835. [groups]
  836. "Norton AntiVirus", nav.grp,
  837. "Startup",          startup.grp
  838.  
  839. [Norton AntiVirus]
  840. "Norton AntiVirus",             navw32.exe,     navw32,    0, TARGET, navw32.exe,   TARGET, " "
  841. "Norton Program Scheduler",     nsched32.exe,   scheduler, 0, TARGET, nsched32.exe, TARGET, " "
  842. "Rescue Disk",                  nresq32.exe,    rescue,    0, TARGET, nresq32.exe,  TARGET, " "
  843.  
  844. [Startup]
  845. "Norton Program Scheduler",     nsched32.exe,   scheduler, 2, TARGET, nsched32.exe, TARGET, " "
  846.  
  847. ;***************************************************************************
  848. ;* Copy                                                                    *
  849. ;***************************************************************************
  850.  
  851. [NAVCopy]
  852. ;seltype.component, description,                        size,req,files,show
  853. CopyMain.BaseFiles, "Norton AntiVirus Base Files",         0,  Y, N, Y
  854. CopySub.shared,     " "
  855. CopySub.virdefs,    " "
  856. CopySub.navw32,     "Windows scanner application"
  857. CopySub.install,    "Install/uninstall NAV"
  858.  
  859. CopyMain.NAVVXD,    "Automatic protection",                0,  N, Y, Y
  860. CopySub.navapw,     "Automatic protection VxD"
  861.  
  862. CopyMain.NAVDOS,    "Startup protection",                  0,  N, Y, Y
  863. CopySub.navboot,    "NAVBOOT"
  864. CopySub.navtsr,     "NAVTSR"
  865.  
  866. CopyMain.Tools,     "Tools",                               0,  N, Y, Y
  867. CopySub.rescue,     "Create a rescue disk"
  868. CopySub.scheduler,  "Schedule scans"
  869.  
  870. ; Selective needs unchecked last entry.
  871. CopyMain.Selective, "Selective uninstall",                 0,  N, N, N
  872.  
  873.  
  874. ;***************************************************************************
  875. ; Wizard Panels
  876. ;***************************************************************************
  877.  
  878. [UninstallDlg]
  879. Caption="Norton AntiVirus for Windows 95 Setup"
  880. Title="Uninstall Norton AntiVirus"
  881. DlgProc=WizardPanelProc
  882. ResourceId=132
  883. Bitmap16=202
  884. PanelDataProc=_DefaultDataProc@0
  885. PanelFlags=First
  886.  
  887. [RemoveSharedDlg]
  888. Caption="Norton AntiVirus for Windows 95 Setup"
  889. Title="Uninstall Norton AntiVirus"
  890. DlgProc=WizardPanelProc
  891. ResourceId=134
  892. Bitmap16=202
  893. PanelDataProc=_DefaultDataProc@0
  894. PanelFlags=First
  895.  
  896. [Finished]
  897. Caption="Norton AntiVirus for Windows 95 Setup"
  898. Title="Uninstall Complete"
  899. DlgProc=WizardPanelProc
  900. ResourceId=135
  901. Bitmap16=202
  902. PanelDataProc=_DefaultDataProc@0
  903. PanelFlags=First+Last+Finish
  904.  
  905.